package com.dhy.mapper;

import com.dhy.dto.PermissionDto;
import com.dhy.pojo.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {


    Permission selectByName(String name);

    void batchInsert(List<Permission> permissionList);

    // TRUNCATE TABLE table_name;
    void truncate();

    Long insertSelective(Permission permission);

    List<PermissionDto> selectPermissionTree();
}
